/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import java.sql.Date;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Alex
 */
public class CastingporExtras {
    
    private String idcasting;
    private String idextra;
    private Date fechacasting;
    
    public  static CastingporExtras load(ResultSet rs)throws SQLException
	{
		CastingporExtras castingporextras = new CastingporExtras();
		castingporextras.setIdcasting(rs.getString(1));
		castingporextras.setIdextra(rs.getString(2));
		castingporextras.setFechacasting(rs.getDate(3));
                return castingporextras;
	}

    public Date getFechacasting() {
        return fechacasting;
    }

    public void setFechacasting(Date fechacasting) {
        this.fechacasting = fechacasting;
    }

    public String getIdcasting() {
        return idcasting;
    }

    public void setIdcasting(String idcasting) {
        this.idcasting = idcasting;
    }

    public String getIdextra() {
        return idextra;
    }

    public void setIdextra(String idextra) {
        this.idextra = idextra;
    }
    
}
